# Maintainer: Mike Crute <mike@crute.us>
pkgname=newsboat
pkgver=2.28
pkgrel=0
pkgdesc="RSS/Atom feed reader for text terminals"
url="https://newsboat.org/"
arch="all !s390x !riscv64" # limited by rust/cargo
license="MIT"
replaces="newsbeuter"
provides="newsbeuter=$pkgver-r$pkgrel"
makedepends="asciidoctor cargo curl-dev gettext-dev libxml2-dev
	ncurses-dev sqlite-dev stfl-dev xz json-c-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="
	https://newsboat.org/releases/$pkgver/newsboat-$pkgver.tar.xz
	fix-version-number.patch
	"

build() {
	./config.sh
	echo "LDFLAGS+= -lintl" >> config.mk
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="
ee694a2bfcaf7d7bc94b6a087e9eb2e62e7d4ea0048e973f07e54e191b8e04dda5f1d36fc091e80b5921dc57650248ee509c0acdf14ff5789bb7dffba9e84d7a  newsboat-2.28.tar.xz
9ae1ab4b236fed25f3da30ece178f83c1c71955162eefb1ab278a92591039dbaa6aa1aed88b2f6cc59a405b0dc6a8d531dcbd8f26e1d00ece8b40891e879ebf2  fix-version-number.patch
"
